Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

162
Vistas
Firefox extension - retrieve href from class |works| - opening new window or start to download from given url - not working

I wrote an extension that should get the content of a specific href link. It should then open the url without user interaction.

The script I've been working on so far gets the correct url. It can print the url in a push notification. The basics of the FF extension work.

But no matter what I've tried (open.window, browser.downloads., window.location) never has a window opened or the download started when visting the domain / website containing the hidden--Element.

I'm a total beginner but I would like to get this script to work. This would motivate me to keep on learning.

This is from the manifest.json

"permissions": ["downloads.open", "downloads", "webRequest", "tabs"],
"content_scripts": [
{
    "matches": ["*://*.thedomain.org/*"],
    "js": ["border.js", "jquery-3.6.0.min.js", "adskip.js"],
"run_at": "document_end"

this is the content of adskip.js

for(var i=0; i<l.length; i++) {
  arringo.push(l[i].href);
}

alert(arringo);

function redirect() {
    location.href = arringo;
}
addEventListener('load', redirect);


I added the permissions in the manifest.json but I'm not sure whether I need them / another ones / or not at all.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda